// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import '../element-variables.scss'
import {post, fetch, patch, put} from './utils/api'

import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/zh-CN'

import BootstrapVue from 'bootstrap-vue'

Vue.use(ElementUI, {locale})
Vue.use(BootstrapVue)

Vue.config.productionTip = false
Vue.prototype.$fetch = fetch
Vue.prototype.$post = post
Vue.prototype.$patch = patch
Vue.prototype.$put = put

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
